<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  grabAll()
</p>
<p><strong>Class:</strong><br />

  <a href="creatorClass.html">CREATOR</a>
<p><strong>Method Call:</strong><br />
  include_once("core/creator/CREATOR.php");<br />
$creator = new CREATOR($this-&gt;db);<br />
ASSOC. ARRAY $creator->grabAll([INT: $userBibliographyId = FALSE]); </p>
<p><strong>Description:</strong><br />
  Returns an associative array of all the creators in the WIKINDX database ordered by surname suitable for use with a HTML form select box. If <em>$userBibliographyId</em> is supplied, the list of creators is limited to creators from resources within that user bibliography.

<p><strong>Usage:</strong>
<pre>
	$userBibId = $session->getVar("mywikindx_bibliography_use");
	include_once("core/creator/CREATOR.php");<br />
	$creator = new CREATOR($this->db);
	$creatorArray = $creator->grabAll($userBibId);
	$creatorArray will be something like:

	array(
			'793'		=>		'Asterix',
			'102'		=>		'Grimshaw, Mark',
			'399'		=>		'de Witt, Franciscus I.M.',
			'35'		=>		'Wozniac, Steve',
		);
</pre>
The keys of the arrays are the ID numbers in the database table <em>WKX_creator</em> and are the IDs that are inserted as a comma-delimited list in the <em>creator1</em>, <em>creator2</em>, <em>creator3</em>, <em>creator4</em> or <em>creator5</em> fields in <em>WKX_resource_creator</em>. 
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
